#include "event.h"

Event::Event(bool autoReset):
    m_autoReset(autoReset)
    ,m_state(false)
{
    pthread_mutex_init(&m_mutex, NULL);
    pthread_cond_init(&m_cond, NULL);
}

Event::~Event()
{
    pthread_cond_destroy(&m_cond);
    pthread_mutex_destroy(&m_mutex);
}




